﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECS.DAL.Entity
{
    public class CommentRecord : ObjectContext
    {
        #region private properties
        private string _commentId = string.Empty;
        private string _slipId = string.Empty;
        private string _commentTypeId = string.Empty;
        private int _commentNumber = 0;
        private string _value = string.Empty;
        private DateTime _createDate;
        private string _createBy = string.Empty;
        private string _commentTypeName = string.Empty;
        #endregion

        #region public properties
        /// <summary>
        /// Comment Id
        /// </summary>
        public string CommentId
        {
            set
            {
                _commentId = value;
                UpdateObject();
            }
            get { return _commentId; }
        }
        /// <summary>
        /// Slip ID
        /// </summary>
        public string SlipId
        {
            set
            {
                _slipId = value;
                UpdateObject();
            }
            get { return _slipId; }
        }
        /// <summary>
        /// Comment Type ID
        /// </summary>
        public string CommentTypeId
        {
            set
            {
                _commentTypeId = value;
                UpdateObject();
            }
            get { return _commentTypeId; }
        }
        /// <summary>
        /// Comment Number
        /// </summary>
        public int CommentNumber
        {
            set
            {
                _commentNumber = value;
                UpdateObject();
            }
            get { return _commentNumber; }
        }
        /// <summary>
        /// Value
        /// </summary>
        public string Value
        {
            set
            {
                _value = value;
                UpdateObject();
            }
            get { return _value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateDate
        {
            set
            {
                _createDate = value;
                UpdateObject();
            }
            get { return _createDate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string CreateBy
        {
            set
            {
                _createBy = value;
                UpdateObject();
            }
            get { return _createBy; }
        }
        /// <summary>
        /// comment type name
        /// </summary>
        public string CommentTypeName
        {
            set
            {
                _commentTypeName = value;
                UpdateObject();
            }
            get { return _commentTypeName; }
        }
        /// <summary>
        /// application Id
        /// </summary>
        public string AppId { set; get; }
        /// <summary>
        /// Device
        /// </summary>
        public string Device { set; get; }
        /// <summary>
        /// User ID
        /// </summary>
        public string UserId { set; get; }
        #endregion
        
    }
}
